Use Step keyframes to keep the value of the current keyframe constant up until the following keyframe. More...
#include <kanzi/core.ui/animation/keyframe_animation.hpp>
Public Member Functions | |
TValueType | getValue (const TValueType ¤tValue, float normalizedTime) override |
Returns the value for the animated property at a given time. | |
StepKeyframe () | |
Constructor. | |
StepKeyframe (TValueType value) | |
Constructor. | |
Public Member Functions inherited from kanzi::KeyframeAnimation< TValueType >::Keyframe | |
TValueType | getKeyValue () const |
Returns the keyframe value of the animated property. | |
Keyframe () | |
Constructor. | |
Keyframe (TValueType value) | |
Constructor. | |
void | setKeyValue (const TValueType &keyValue) |
Sets the keyframe value for a keyframe. | |
virtual | ~Keyframe () |
Static Public Member Functions | |
static StepKeyframePtr | create (float value) |
Creates a step keyframe. | |
Use Step keyframes to keep the value of the current keyframe constant up until the following keyframe.
|
inlineexplicit |
Constructor.
|
inlineexplicit |
Constructor.
value | The keyframe value of the animated property. |
|
inlinestatic |
Creates a step keyframe.
value | The keyframe value of the animated property. |
|
inlineoverridevirtual |
Returns the value for the animated property at a given time.
currentValue | The current value of the animated property. |
normalizedTime | The time at which you want to get the value of the animated property. 0.0 corresponds to the time of the previous keyframe. 1.0 corresponds to the time of this keyframe. |
Implements kanzi::KeyframeAnimation< TValueType >::Keyframe.